﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using EventBroker;


namespace Algorithm
{
    /// <summary>
    /// Concrete class that implements the parsing algorithm for a website
    /// </summary>
    public class CParserConcreteProduct_MayBank : CParserAbstractProduct
    {      
        /// <summary>
        /// Method that implements the algorithm to parse the crawled information of a website
        /// </summary>
        [CEventSubscription("Topic:MayBank_ProductA_ParseAsync", Thread = EThreadOption.Background, WorkItemGroupName = "MayBank_ProductA_ParseAsync")]
        public void ProductA_ParseAsync(object objSender_p, EventArgs eventArgs_p)
        {
            System.Diagnostics.Debug.WriteLine("In MayBank_ProductA_ParseAsync");
            
            //Start your parsing code here
            
        }

        [CEventSubscription("Topic:MayBank_ProductB_ParseAsync", Thread = EThreadOption.Background, WorkItemGroupName = "MayBank_ProductB_ParseAsync")]
        public void ProductB_ParseAsync(object objSender_p, EventArgs eventArgs_p)
        {
            System.Diagnostics.Debug.WriteLine("In MayBank_ProductB_ParseAsync");

            //Start your parsing code here

        }
    }
}
